R is for Research, Python is for Production {https://t.co/NVCRQnvTjW} #rstats #DataScience
— R-bloggers (@Rbloggers) July 12, 2021
FeatureTerminatoR – a package to remove unimportant variables from statistical and machine l {https://t.co/bD8tbLZmUZ} #rstats #DataScience
— R-bloggers (@Rbloggers) July 15, 2021
ggplot: plot only some of the data {https://t.co/f2OoQUGd0k} #rstats #DataScience
— R-bloggers (@Rbloggers) July 12, 2021
How to Create a Covariance Matrix in R {https://t.co/AXUGktYu07} #rstats #DataScience
— R-bloggers (@Rbloggers) July 11, 2021
How to become a better R code detective? {https://t.co/9Mw6o2fvD4} #rstats #DataScience
— R-bloggers (@Rbloggers) July 13, 2021
When k-means clustering fails {https://t.co/yzzkVXRHWw} #rstats #DataScience
— R-bloggers (@Rbloggers) July 16, 2021
easystats: Quickly investigate model performance {https://t.co/vmJJo94JKv} #rstats #DataScience
— R-bloggers (@Rbloggers) July 13, 2021
Interest Rate Swap Pricing using R code {https://t.co/9I5ZBWAKoE} #rstats #DataScience
— R-bloggers (@Rbloggers) July 10, 2021
Little useless-useful R functions – Colourful ggplot line graphs {https://t.co/7p5RPdvTe7} #rstats #DataScience
— R-bloggers (@Rbloggers) July 16, 2021
visualizing topic models with crosstalk {https://t.co/sI4MCghEHR} #rstats #DataScience
— R-bloggers (@Rbloggers) July 13, 2021
Shiny, Tableau, and PowerBI: Better Business Intelligence {https://t.co/C70einOYxM} #rstats #DataScience
— R-bloggers (@Rbloggers) July 13, 2021
New package katex: rendering math to HTML and MathML in R {https://t.co/hoVJc2mceb} #rstats #DataScience
— R-bloggers (@Rbloggers) July 13, 2021
simplevis: making leaflet sf maps {https://t.co/FDjeXwj38S} #rstats #DataScience
— R-bloggers (@Rbloggers) July 12, 2021
Tutorial: Build a Full Shiny Dashboard With shiny.fluent {https://t.co/zfojPNWmML} #rstats #DataScience
— R-bloggers (@Rbloggers) June 20, 2021
R is for Research, Python is for Production {https://t.co/NVCRQnvTjW} #rstats #DataScience
— R-bloggers (@Rbloggers) July 12, 2021
simplevis: interactive plots with plotly::ggplotly {https://t.co/9hFwIuT508} #rstats #DataScience
— R-bloggers (@Rbloggers) July 4, 2021
Spatially weighted averages in R with sf {https://t.co/X7ZS1iOQkj} #rstats #DataScience
— R-bloggers (@Rbloggers) July 1, 2021
FeatureTerminatoR – a package to remove unimportant variables from statistical and machine l {https://t.co/bD8tbLZmUZ} #rstats #DataScience
— R-bloggers (@Rbloggers) July 15, 2021
SHAP Analysis in 9 Lines {https://t.co/8A7GFMURsP} #rstats #DataScience
— R-bloggers (@Rbloggers) June 24, 2021
Sentiment Analysis on Reddit using R {https://t.co/6b670kmKHk} #rstats #DataScience
— R-bloggers (@Rbloggers) June 25, 2021
10 Tips and Tricks for Data Scientists Vol.10 {https://t.co/aNt6BptYAp} #rstats #DataScience
— R-bloggers (@Rbloggers) July 4, 2021
9 new R books added 📚📚📚 {https://t.co/TEiYIvhvsM} #rstats #DataScience
— R-bloggers (@Rbloggers) June 18, 2021
What Makes a Sensitivity Analysis? {https://t.co/GYT45iEkDv} #rstats #DataScience
— R-bloggers (@Rbloggers) June 22, 2021
ggplot: plot only some of the data {https://t.co/f2OoQUGd0k} #rstats #DataScience
— R-bloggers (@Rbloggers) July 12, 2021
How to Create a Covariance Matrix in R {https://t.co/AXUGktYu07} #rstats #DataScience
— R-bloggers (@Rbloggers) July 11, 2021
Exploratory Functional PCA with Sparse Data {https://t.co/49KGdNmyKI} #rstats #DataScience
— R-bloggers (@Rbloggers) July 8, 2021
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```